package cn.e4j.modular.crm.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shixc
 * @since 2019-02-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWDA_T")
public class GwdaT extends PO<GwdaT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWDAENT", type = IdType.INPUT)
    private String GWDAENT;

    private BigDecimal GWDA001;

    @Excel(name = "客户编号")
    private String GWDA002;

    @Excel(name = "品号")
    private String GWDA003;

    @Excel(name = "类型",replace = {"包含_Y", "不包含_N"})
    private String GWDA006;

    @Excel(name = "产品系列")
    private String GWDA007;



    @Excel(name = "纳入年度指标否",replace = {"是_Y", "否_N"})
    private String GWDA005;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期")
    private LocalDate GWDA004;

    private String GWDAACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWDAUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWDAGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String GWDAMODU;
    @TableField(fill = FieldFill.INSERT)
    private String GWDATIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDADATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWDAORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWDAORIU;



    @Override
    protected Serializable pkVal() {
        return this.GWDAENT;
    }

}
